updating oE cos

cos

<built-in> function cos(object angle) 

returns the cosine of an angle expressed in radians.

Parameters:
  1. angle : an object, each atom of which will be converted, no matter how deeply nested.
Returns:

An object, the same shape as angle. Each atom in angle is turned into its cosine.

Comments:

This function may be applied to an atom or to all elements of a sequence.

The cosine of an angle is an atom between -1 and 1 inclusive. 0.0 is hit by odd multiples of PI/2 only.

Example 1:
x = cos({.5, .6, .7}) 
-- x is {0.8775826, 0.8253356, 0.7648422} 
See Also:

sin, tan, arccos, PI, deg2rad

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu